<template>
  <el-dialog
    :destroy-on-close="false"
    :show-close="false"
    v-model="dialogVisible"
    align-center
    width="502"
  >
    <div class="container">
      <img class="close" src="~/assets/img/close.png" alt="" />
      <div class="header">扫码支付</div>
      <div class="content">
        <div class="code"></div>
        <div class="right">
          <div class="tag">新人首单优惠</div>
          <div class="desc">应付金额</div>
          <div class="price"><span>¥100</span><span>已减20元</span></div>
          <div class="type">
            <span></span><span></span><span>支持微信/支付宝扫码</span>
          </div>
          <div class="btn"><el-radio label="1">服务协议</el-radio></div>
        </div>
      </div>
    </div>
  </el-dialog>
</template>

<script setup>
const dialogVisible = ref(false);
</script>

<style lang="scss" scoped>
.container {
  height: 322px;
  background: #ffffff;
  border-radius: 10px;
  position: relative;
  .close {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 10px;
    right: 10px;
  }
  .header {
    height: 68px;
    background: linear-gradient(97deg, #ff5500, #ff9965 100%);
    border-radius: 10px 10px 0px 0px;
    font-size: 16px;
    color: #ffffff;
    padding-left: 20px;
    display: flex;
    align-items: center;
  }
  .content {
    padding: 30px 40px;
    display: flex;
    .code {
      width: 194px;
      height: 194px;
      border: 1px solid #f2f2f2;
      border-radius: 5px;
      background: red;
    }
    .right {
      margin-left: 20px;
      .tag {
        height: 24px;
        background: #ffd6d6;
        border-radius: 3px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 500;
        text-align: LEFT;
        color: #f72a2a;
      }
      .desc {
        height: 22px;
        font-size: 16px;
        font-weight: 500;
        text-align: LEFT;
        color: #999999;
        line-height: 19px;
        margin-top: 23px;
      }
      .price {
        margin-top: 8px;
        span:first-child {
          font-size: 30px;
          font-weight: 500;
          text-align: LEFT;
          color: #ff5500;
        }
        span:last-child {
          font-size: 13px;
          font-weight: 500;
          text-align: LEFT;
          color: #ff5500;
          margin-left: 10px;
        }
      }
      .type {
        margin-top: 20px;
        font-size: 16px;
        font-weight: 500;
        text-align: LEFT;
        color: #333333;
      }
      .btn {
        margin-top: 20px;
        font-size: 16px;
        font-weight: 500;
        text-align: LEFT;
        color: #333333;
      }
    }
  }
}
</style>
